<?php
	$group = $dsfm_common->get_all("common_group");
	$tpl->assign("group", $group);

	$all_data = $dsfm_common->get_all("common", "year=".$_SESSION['year']." order by id asc");
	foreach($all_data as $k => $v){
		$data[$v['gid']][] = $v;
	}

	$tpl->assign("data", $data);

	$tpl->draw("common");
?>